package common.project.epic.ui;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.shapes.RectShape;
import android.util.AttributeSet;
import android.widget.TextView;

public class BorderTextView extends TextView {
	Resources res;
	
	public BorderTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public BorderTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public BorderTextView(Context context) {
        super(context);
    }

    @Override
    protected void onDraw(Canvas canvas) {
    	getResources();
        super.onDraw(canvas);
        Rect rect = new Rect();
//        RectF rect_1 = new RectF();
//        RectShape rect_2 = new RectShape();  
        Paint paint = new Paint();
        paint.setStyle(Paint.Style.STROKE);
        paint.setColor(R.color.Orange);
        paint.setStrokeWidth(6);
        getLocalVisibleRect(rect);
        canvas.drawRect(rect, paint);       
    }

}
